from sanic import Sanic
from views import api
from sanic_cors import CORS
from sanic.response import json


app = Sanic("imlf")
CORS(app, automatic_options=True)
app.blueprint(api)

# @app.route('/', methods=["GET"])
# def hello(request):
#     return json({"data": "Hello"})

if __name__ == "__main__":
    app.run(host="0.0.0.0", port=8000, debug=True)
# app.run(host='0.0.0.0', port=8000, access_log=False, workers=4)
